<?php
require_once("includes/include.php");
?>
<?php
header("Content-Type:text/xml");
echo'<?xml version="1.0" encoding="utf-8" standalone="yes" ?>';
echo '<response>';
class finance extends daobase {
	 public function do_addFinanceTerm($fangxiang,$kind,$title,$quantity,$beizhu,$date,$usernumber){
	 	$sql = "INSERT INTO finance (`fx` , `kind` , `title` , `quantity` , `beizhu`, `time`, `user_number`) values ('$fangxiang','$kind','$title','$quantity','$beizhu','$date','$usernumber')";
	 	//echo $sql;
	 	$result = $this->queryit($sql);
	 	return $result;
	 }
}
$fangxiang = $_POST["fangxiang"];
$kind = $_POST["kind"];
$title = $_POST["title"];
$quantity = $_POST["quantity"];
$beizhu = $_POST["beizhu"];
date_default_timezone_set("Asia/shanghai");
$date = date('Y-m-d H:i:s');
session_start();
$usernumber = $_SESSION["userNumber"];
$addFinanceTerm = new finance();
$response = $addFinanceTerm->do_addFinanceTerm($fangxiang,$kind,$title,$quantity,$beizhu,$date,$usernumber);
echo $reponse;
echo '</response>';
?>